package com.ruicar.afs.cloud.basic.api.fegin.casefeign;

import com.ruicar.afs.cloud.basic.api.dto.CasePrototypeDto;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "case", url = "${com.greatwall.services.case-service.url}")
public interface CaseServiceFeign {

    @ApiOperation("查询地区名称列表")
    @PostMapping(value = "/channelCaseInfo/getAddressList", headers = {"clientId=${com.greatwall.services.case-service.clientId}", "clientSecret=${com.greatwall.services.case-service.clientSecret}"})
    IResponse getAddressList(@RequestBody CasePrototypeDto casePrototypeDto);
}
